package com.nuanshui.heatedloan.userinfo.dal.mapper;

import org.apache.ibatis.annotations.Param;


public interface UserStateMapper {

	Long isTestUser(@Param("sourceUserId") String sourceUserId);

	String getUserChannel(@Param("userId") String userId);

	void setUserChannel(@Param("userId") String userId, @Param("channel") String channel);

	void updateViewCount(@Param("count") Long count, @Param("userId") String userId);

	Integer userCountByNick(@Param("nick") String nick, @Param("currentUserId") String currentUserId);

	int undeleteByPrimaryKey(String id);

	void activateUser(@Param("id") String id);

	void praiseUser(@Param("sourceUserId") String sourceUserId, @Param("targetUserId") String targetUserId, @Param("selfhoodImg") String selfhoodImg);

	Long isPraisedUser(@Param("sourceUserId") String sourceUserId, @Param("targetUserId") String targetUserId, @Param("selfhoodImg") String selfhoodImg);

	int findNotReadMessage(@Param("userId") String userId);

	void updateNotReadNum(@Param("userId") String userId, @Param("num") Integer num);

} 